using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace stefc.geo.lib
{
    public static class RequestExtensions
    {
        public static void Request<TRequest, TResponse>(this Action<RequestWithResponsePin<TRequest, TResponse>> outputPin, TRequest data, Action<TResponse> responsePin)
        {
            outputPin(new RequestWithResponsePin<TRequest, TResponse>(data, responsePin));
        }
    }
}
